package wpp.view;

import javafx.geometry.Pos;
import javafx.scene.layout.Pane;
import javafx.scene.layout.Region;
import javafx.scene.layout.StackPane;

public abstract class PreviewPane extends StackPane {
	
	protected static final Double PREF_WIDTH = 1170.0;
	protected static final Double PREF_HEIGHT = 705.0;
	
	protected static final Integer GRID_COLS = 4;
	protected static final Integer GRID_ROWS = 3;
	protected static final Integer GRID_CAPACITY = GRID_COLS * GRID_ROWS;
	protected static final Double[][] POSS = new Double[][] {
		new Double[] {0.0, 0.0},
		new Double[] {302.0, 0.0},
		new Double[] {604.0, 0.0},
		new Double[] {906.0, 0.0},
		new Double[] {0.0, 235.0},
		new Double[] {302.0, 235.0},
		new Double[] {604.0, 235.0},
		new Double[] {906.0, 235.0},
		new Double[] {0.0, 470.0},
		new Double[] {302.0, 470.0},
		new Double[] {604.0, 470.0},
		new Double[] {906.0, 470.0}		
	};
		
	protected Pane imageShowContainer;
	protected Pane imageShowContainerUpLayer;
	
	protected PreviewPane() {
		this.setId("preview-pane");
		imageShowContainer = new Pane();
		imageShowContainer.setPrefSize(PREF_WIDTH, PREF_HEIGHT);
		imageShowContainer.setMinSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE);
		imageShowContainer.setMaxSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE);
		StackPane.setAlignment(imageShowContainer, Pos.BOTTOM_CENTER);
		imageShowContainerUpLayer = new Pane();
		getChildren().addAll(imageShowContainer);
	}
	
}
